Optimal. Leaf size=49 \[ \frac {i (a+i a \cot (c+d x))^n \, _2F_1\left (1,n;n+1;\frac {1}{2} (i \cot (c+d x)+1)\right )}{2 d n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {3481, 68} \[ \frac {i (a+i a \cot (c+d x))^n \, _2F_1\left (1,n;n+1;\frac {1}{2} (i \cot (c+d x)+1)\right )}{2 d n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 68
Rule 3481
Rubi steps
\begin {align*} \int (a+i a \cot (c+d x))^n \, dx &=\frac {(i a) \operatorname {Subst}\left (\int \frac {(a+x)^{-1+n}}{a-x} \, dx,x,i a \cot (c+d x)\right )}{d}\\ &=\frac {i (a+i a \cot (c+d x))^n \, _2F_1\left (1,n;1+n;\frac {1}{2} (1+i \cot (c+d x))\right )}{2 d n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.32, size = 117, normalized size = 2.39 \[ \frac {i (a+i a \cot (c+d x))^n \left (2 (n+1) \, _2F_1(1,n;n+1;i \cot (c+d x)+1)+(n+i n \cot (c+d x)) \left (\, _2F_1\left (1,n+1;n+2;\frac {1}{2} (i \cot (c+d x)+1)\right )-2 \, _2F_1(1,n+1;n+2;i \cot (c+d x)+1)\right )\right )}{4 d n (n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.86, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\left (-\frac {2 \, a}{e^{\left (2 i \, d x + 2 i \, c\right )} - 1}\right )^{n}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (i \, a \cot \left (d x + c\right ) + a\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 2.50, size = 0, normalized size = 0.00 \[ \int \left (a +i a \cot \left (d x +c \right )\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (i \, a \cot \left (d x + c\right ) + a\right )}^{n}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int {\left (a+a\,\mathrm {cot}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (i a \cot {\left (c + d x \right )} + a\right )^{n}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________